<?php

use app\services\ModelService;

return [
    'goods.search' => [
        [\app\event\Goods::class, 'addSearchHistory']
    ],
    'music.search' => [
        [\app\event\Music::class, 'addSearchHistory']
    ],
    'music-menu.search' => [
        [\app\event\Music::class, 'addSearchMenuHistory']
    ],
    'user.register' => [
        [ModelService::class, 'bindParent'],
        [ModelService::class, 'givePoint'],
        [ModelService::class, 'registerGivePoint']
    ],
    'order.after-pay' => [

    ],
    'order.after-confirm' => [
        [ModelService::class, 'prizeDraw'],
        [ModelService::class, 'updateTeamInfo'],
        [ModelService::class, 'profitSharing'],
    ],
    'gift-order.after-pay' => [
        [ModelService::class, 'toVip'],
        [ModelService::class, 'bindParent'],
        [ModelService::class, 'profitSharing'],
        [ModelService::class, 'updateTeamInfo'],
    ],
    'gift-order.before-create' => [
        [ModelService::class, 'checkCanCreateOrder']
    ],
    'after-prize-draw' => [
//        [ModelService::class, 'sendMessage']
    ]
];
